package com.atzhou.entity;


import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
public class Employees {
    private Integer tid;

    @NotEmpty(message="不能为空")
    @Length(min=5,max=17,message="长度不对")
    private String lastName;

    private String gender;

    @Email
    @NotEmpty(message="邮箱不能为空")
    private String email;

    private String dId;

    private Department department;

    public Employees() {

    }

    @Override
    public String toString() {
        return "Employees{" +
                "tid=" + tid +
                ", lastName='" + lastName + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", dId='" + dId + '\'' +
                ", department=" + department +
                '}';
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getdId() {
        return dId;
    }

    public void setdId(String dId) {
        this.dId = dId;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Employees(Integer tid, String lastName, String gender, String email, String dId, Department department) {
        this.tid = tid;
        this.lastName = lastName;
        this.gender = gender;
        this.email = email;
        this.dId = dId;
        this.department = department;
    }
}